import java.io.Serializable;

public class Message implements Serializable {
    public String messageType;
    public Conveyable messageBody = null;

    public Message(String messageType) {
        this.messageType = messageType;
    }

    public Message(String messageType, Conveyable messageBody) {
        this.messageType = messageType;
        this.messageBody = messageBody;
    }

    @Override
    public String toString() {
        return "Message{" +
                "messageType='" + messageType + '\'' +
                ", message=" + messageBody +
                '}';
    }
}
